package com.mycat.dao.dto.auth;

import com.mycat.dao.entity.auth.AuthResource;

import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * 页面左侧菜单栏数据DTO
 */
public class MenuResourcesDTO extends AuthResource {

    public MenuResourcesDTO(){

    }

    @Transient
    private MenuResourcesDTO parent;//上级资源
    @Transient
    private List<MenuResourcesDTO> children = new ArrayList<>(); // 子资源

    public MenuResourcesDTO getParent() {
        return parent;
    }

    public void setParent(MenuResourcesDTO parent) {
        this.parent = parent;
    }

    public List<MenuResourcesDTO> getChildren() {
        return children;
    }

    public void setChildren(List<MenuResourcesDTO> children) {
        this.children = children;
    }
}
